package com.ozo.cloud.system.exception;

import com.ozo.cloud.common.base.exception.AbstractExceptionEnum;
import lombok.Getter;

/**
 * 系统异常信息
 *
 * @author qiangesoft
 * @date 2024-06-28
 */
@Getter
public enum SystemExceptionEnum implements AbstractExceptionEnum {

    /**
     * 30000~39999之间
     */
    FILE_UPLOAD_FAIL(30000, "文件上传失败"),
    CONFIG_KEY_EXISTS(30001, "配置key已存在"),
    DICT_CODE_EXISTS(30002, "字典编码已存在"),
    DICT_ITEM_EXISTS(30003, "字典项已存在"),

    ;


    private Integer code;

    private String message;

    SystemExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
